package com.hyk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyk.domain.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper extends BaseMapper<SysRole> {
    Page<SysRole> selectPageByName(Page<SysRole> page, @Param("name") String name);

    List<SysRole> selectUserRole(@Param("userId") Long userId);
}